<?php
class IndexAction extends CommonAction {

    public function index() {
        header("Content-Type:text/html; charset=utf-8");
        
        $model = M('Ip');
        $data = array(
            'ip' => $_SERVER['REMOTE_ADDR'],
            'rq' => date("Y-m-d H:i:s"),
        );
        $model->add($data);
        $model = D('SysMenu');
        $list = $model->getList();
        $this->assign('menus', $list);
        $this->display();
 
    }

}